-- GENERATED SPELL FOR [Lordaeron Watchman] --


function spell0_17814(pUnit, Event) --@Shield Block,Self--
pUnit:FullCastSpellOnTarget(12169,pUnit)
pUnit:RegisterEvent('Sorts_17814', 5264, 1)
end

function spell1_17814(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17814', 588, 1)
end

function Sorts_17814(pUnit, Event)
local choix_sorts_17814 = math.random(0, 1)
if choix_sorts_17814 == 0 then
pUnit:RegisterEvent('spell0_17814', 1, 1)
end
if choix_sorts_17814 == 1 then
pUnit:RegisterEvent('spell1_17814', 1, 1)
end
end

function mob17814_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17814', math.random(1500, 3000), 1)
end

function mob17814_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17814_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17814_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17814, 1, 'mob17814_Action')
RegisterUnitEvent(17814, 2, 'mob17814_Leave')
RegisterUnitEvent(17814, 3, 'mob17814_Kill')
RegisterUnitEvent(17814, 4, 'mob17814_Die')
